package oopday03.Test02;

public class Truck extends Vehicles {
    float load;

    public Truck(String brand, String colcor, float load) {
        super(brand, colcor);
        this.load = load;
    }

    public Truck() {

    }

    public float getLoad() {
        return load;
    }

    public void setLoad(float load) {
        this.load = load;
    }

    public void showTruck() {
        System.out.println("大卡车商标为：" + getBrand() + "，颜色为：" + getColcor() + "，载重：" + getLoad() + "吨");
    }
}
